﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class Address: Entity
    {
        
        public City City { get; set; }
        public Region Region { get; set; }
        public Street Street { get; set; }
        public string HouseNumber { get; set; } // For example, 10a

        public Address() {
            Id = -1;
            City = new City();
            Region = new Region();
            Street = new Street();
            HouseNumber = String.Empty;
        }

        public Address(int id, City city, Region region,
            Street street, string houseNum) {
                Id = id;
                City = city;
                Region = region;
                Street = street;
                HouseNumber = houseNum;
        }
    }
}
